# Virtual Router Simulator 
#
# Copyright (C) 2009-2010 VRSim Project
# Author: Choonho Son <choonho@kt.com>
# URL: <http://vrsim.googlecode.com>
# For license information, see LICENSE.TXT
#

import VRSim.Langs.Language_rc
from PyQt4 import QtCore,  QtGui
from VRSim.Application import Application

if __name__ == "__main__":
    # list of VMAPI URI
    hypervisors = ["http://127.0.0.1:8000/VMAPI"]
    app = Application(hypervisors)
    
    #locale = QtCore.QLocale.system().name()
    # Language selection
    #app.lang = "Korean"
    if app.lang == "Korean":
        qtTranslator = QtCore.QTranslator()
        if qtTranslator.load("Lang_kr",  ":/Langs/"):
            app.installTranslator(qtTranslator)
        else:
            print "Lang_kr failed"

    app.run()
